<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::group([
    "namespace" => "Api\\v1",
    "prefix" => "v1"
], function () {
    Route::any("category", "CategoryController@index")->name("category.list");
    Route::post('login','UserController@loginIndex')->name('api.login.index');
    Route::post('verificationCodes','VerificationCodesController@store')->name('api.verificationCodes.store');
    Route::post('users','UserController@store')->name('api.users.store');
    Route::post('password','UserController@setPassword')->name('api.user.setpassword');
});
